package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 站内信消息对象 system_notify_message
 *
 * @author ruoyi
 * @date 2023-04-17
 */
public class SystemNotifyMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private Integer userType;

    /** 模版编号 */
    @Excel(name = "模版编号")
    private Long templateId;

    /** 模板编码 */
    @Excel(name = "模板编码")
    private String templateCode;

    /** 模版发送人名称 */
    @Excel(name = "模版发送人名称")
    private String templateNickname;

    /** 模版内容 */
    @Excel(name = "模版内容")
    private String templateContent;

    /** 模版类型 */
    @Excel(name = "模版类型")
    private Long templateType;

    /** 模版参数 */
    @Excel(name = "模版参数")
    private String templateParams;

    /** 是否已读 */
    @Excel(name = "是否已读")
    private Integer readStatus;

    /** 阅读时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readTime;

    /** 创建者 */
    @Excel(name = "创建者")
    private String creator;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updater;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;



    /** 是否推送 */
    @Excel(name = "是否推送")
    private Integer isPush;

    /** 租户编号 */
    @Excel(name = "租户编号")
    private Long tenantId;

    private String hotelId;

    private Long roomId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserType(Integer userType)
    {
        this.userType = userType;
    }

    public Integer getUserType()
    {
        return userType;
    }
    public void setTemplateId(Long templateId)
    {
        this.templateId = templateId;
    }

    public Long getTemplateId()
    {
        return templateId;
    }
    public void setTemplateCode(String templateCode)
    {
        this.templateCode = templateCode;
    }

    public String getTemplateCode()
    {
        return templateCode;
    }
    public void setTemplateNickname(String templateNickname)
    {
        this.templateNickname = templateNickname;
    }

    public String getTemplateNickname()
    {
        return templateNickname;
    }
    public void setTemplateContent(String templateContent)
    {
        this.templateContent = templateContent;
    }

    public String getTemplateContent()
    {
        return templateContent;
    }
    public void setTemplateType(Long templateType)
    {
        this.templateType = templateType;
    }

    public Long getTemplateType()
    {
        return templateType;
    }
    public void setTemplateParams(String templateParams)
    {
        this.templateParams = templateParams;
    }

    public String getTemplateParams()
    {
        return templateParams;
    }
    public void setReadStatus(Integer readStatus)
    {
        this.readStatus = readStatus;
    }

    public Integer getReadStatus()
    {
        return readStatus;
    }
    public void setReadTime(Date readTime)
    {
        this.readTime = readTime;
    }

    public Date getReadTime()
    {
        return readTime;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setUpdater(String updater)
    {
        this.updater = updater;
    }

    public String getUpdater()
    {
        return updater;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }

    public Integer getIsPush() {
        return isPush;
    }

    public void setIsPush(Integer isPush) {
        this.isPush = isPush;
    }

    public String getHotelId() {
        return hotelId;
    }

    public void setHotelId(String hotelId) {
        this.hotelId = hotelId;
    }


    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userType", getUserType())
                .append("templateId", getTemplateId())
                .append("templateCode", getTemplateCode())
                .append("templateNickname", getTemplateNickname())
                .append("templateContent", getTemplateContent())
                .append("templateType", getTemplateType())
                .append("templateParams", getTemplateParams())
                .append("readStatus", getReadStatus())
                .append("readTime", getReadTime())
                .append("creator", getCreator())
                .append("createTime", getCreateTime())
                .append("updater", getUpdater())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .append("tenantId", getTenantId())
                .append("isPush", getIsPush())
                .toString();
    }
}
